package com.acane.instagram.service;


import com.acane.instagram.pojo.Result;
import com.acane.instagram.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface UserService extends IService<User> {



    String uploadAvatar(Integer userId, MultipartFile file) throws IOException;

    User findUser(String userName, String password);

    User getUserById(String userId);

    void updateUserAvatar(String userId, String fileName);

    Result getRecommendUserList(String userId);

    Boolean judgeFollowed(String followingId, String followerId);

    List<User> getMessageList(String userName);

    User getUserByUserName(String userName);

    int getPostCount(String userId);

    int getFollowerCount(String userId);

    int getFollowingCount(String userId);

    List<User> searchUser(String keyword);

    User findByUsername(String username);
}